@use 'variables.module.scss';
@use 'mixin.scss';
@use 'transition.scss';
@use 'element-ui.scss';
@use 'sidebar.scss';
@use 'elDialog.scss';

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: ' ';
    clear: both;
    height: 0;
  }
}

// main-container global css
.app-container {
  padding: 20px;
}

.form-search {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 10px;

  .search-item {
    margin: 0 20px 20px 0;
    display: flex;
    align-items: center;
    .search-item-title {
      min-width: 80px;
      text-align: center;
      // font-weight: bold;
    }
    .label {
      max-width: 200px;
      min-width: 120px;
    }
    .nums {
      max-width: 120px;
      min-width: 80px;
    }
  }
}
.w-full {
  width: 100%;
}

.ml-4 {
  margin-left: 16px;
}
.mr-4 {
  margin-right: 16px;
}
.mt-4 {
  margin-top: 16px;
}
.page {
  padding: 20px;
  margin-top: 20px;
  background-color: #ffffff;
}

// 单行文本省略号
.single-line-ellipsis {
  white-space: nowrap; /* 禁止换行 */
  overflow: hidden; /* 隐藏溢出内容 */
  text-overflow: ellipsis; /* 设置容器宽带 */
}
.multi-line-ellipsis {
  display: -webkit-box; /* 弹性伸缩盒子模型 */
  -webkit-box-orient: vertical; /* 垂直排列子元素 */
  -webkit-line-clamp: 3; /* 显示行数 */
  overflow: hidden; /* 隐藏溢出内容 */
  text-overflow: ellipsis; /* 显示省略号 */
}
